import type { EquipmentClassification } from '@/types'

export interface QueryParams {
  name: string
  num: string
  status: string
  typeKey: string
  pointId: number
}

export interface ListItem {
  [key: string]: any
  typeKey: string
  name: string
  num: string
  status: string
  pointId: number
  pointFull: string
  useStatus: string
  efficiencyLevel: string
  specification: string
  installationAddr: string
  brand: string
  manufacturer: string
  installationTime: string
  enableTime: string
  special: 0 | 1
  environmentalProtection: 0 | 1
  parent: number
}

export interface EquipmentInfoSaveDto {
  id: number | null
  typeKey: string
  pointId: number
  name: string
  num: string
  status: string
  useStatus: string
  efficiencyLevel: string
  specification: string
  installationAddr: string
  brand: string
  manufacturer: string
  installationTime: string
  enableTime: string
  special: 0 | 1
  environmentalProtection: 0 | 1
  parent: string | number | null
}

export interface SaveParams {
  typeKey: string
  classificationVoList: EquipmentClassification[]
  equipmentInfo: EquipmentInfoSaveDto
}
